package net.borlis.sample.service.repositories.common;

import net.borlis.sample.service.entities.common.AuditedEntity;

/**
 * Created by alexander.borlis on 18.06.2014.
 */
public interface IAuditRepository<T extends AuditedEntity> {

    Long getCurrentRevision();

    void revertEntityRevision(T t, Long revision);

    T findByRevision(T t, Long revision);

    boolean checkExistingRevision(T t, Long revision);
}
